<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*,java.io.*,java.sql.*,InvestmentPojo.*,ImmovableIndia.*;"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

<html>
	<head>
	<title>Circular</title>
	</head>
	<table width="100%" align="center" border="0" bordercolor="red" cellspacing ="0" cellpadding="0" valign="middle" >
    	<tr>
			<td><h1><div class ="TITLEFORM"><%=null != request.getAttribute("title")?request.getAttribute("title"):""  %></div></h1></td>
		</tr>
	</table>
	<table width="100%" align="center" border="1" bordercolor="red" cellspacing ="0" cellpadding="0" valign="middle" >
	<tr><td width="40%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"> <b>Query</b></font></h2></td>
			<td  width="45%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>Posted Result</b></font></h2></td>
			<td  width="10%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>Posted By</b></font></h2></td>
			<td  width="10%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="blue"><b>Posted On</b></font></h2></td>
			</tr>
	
		<% 
		try{
		String sectorvalue=(String)request.getParameter("sectorvalue");
    	String path = request.getSession().getServletContext().getRealPath("/");
		FileInputStream fis=new FileInputStream(path+"FemaProperties/PostQueryQuestion.properties");
        System.out.println("InputStream is: " + fis);  
		Properties sectorpros = new Properties();
		sectorpros.load(fis);
		request.setAttribute("sectorvalue",sectorpros.getProperty("IIIS~Q24"));
		
		List li = (List) request.getAttribute("QueirysList"); 
		System.out.print("testst"+li);
		if(null != li && !"".equals(li)){
		for(int i=0;i<li.size();i++){
			PostQueriesPojo obj= (PostQueriesPojo) li.get(i);%>
			<tr><td width="40%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><b><%=sectorpros.getProperty(obj.getQueryColumnId()) %></h2></b></td>
			<td  width="45%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><%=obj.getQueryTextValue() %></h2></td>
			<td  width="10%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><font color="bliue"><a href="mailto:"+<%=obj.getUserMailId() %>+" "><%=obj.getUserId() %></font></a></h2></td>
			<td  width="10%"  style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2><%=obj.getQueryPostedDate() %></h2></td></tr>
			<%}}%>
		</table>
</html>
<% }catch(Exception e){
	e.printStackTrace();
}
%>